<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
   xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui" xmlns:pb="http://b2b.pb.com/tags"
   xmlns:pbc="http://java.sun.com/jsf/composite/component">

<ui:composition template="/template/MainTemplate.xhtml">
   <ui:define name="body">
      <pb:saveBean beanName="categoryBean" bean="#{categoryBean}" />
      <p>
         <h:outputFormat value="#{languageBundle.change_language_status_confirm_msg}">
            <f:param value="#{languageBean.getStatusText(languageBean.newStatus)}" />
         </h:outputFormat>
      </p>
      <p:panel header="#{languageBundle.language_tbl_header}">
         <p:panelGrid columns="2" styleClass="confirm" columnClasses="confirmCol1,confirmCol2">

            <h:outputText value="#{categoryBundle.lbl_category_name}" />
            <h:outputText value="#{categoryBean.selectedCategoryLanguage.name}" />

            <h:outputText value="#{categoryBundle.lbl_description}" />
            <h:outputText value="#{categoryBean.selectedCategoryLanguage.description}" />

            <h:outputText value="#{categoryBundle.lbl_mevcut_durum}" />
            <h:outputText value="#{categoryBean.getStatusText(not categoryBean.newStatus)}" />

            <h:outputText value="#{categoryBundle.lbl_yeni_durum}" />
            <h:outputText value="#{categoryBean.getStatusText(categoryBean.newStatus)}" />
         </p:panelGrid>
      </p:panel>

      <pbc:buttonGroup executeAction="#{categoryBean.changeStatusExecuteAction}" executeBtnShow="true"
         backAction="#{categoryBean.backAction}" backBtnShow="true" cancelAction="#{categoryBean.cancelAction}"
         cancelBtnShow="true" />

   </ui:define>
</ui:composition>
</html>